package fm.douban.app.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName WebSocket.java
 * @Description TODO
 * @createTime 2021年07月10日 13:46:00
 */
@Configuration
public class WebSocket {
    /**
     * WebSocket的支持
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
